export default function (date, time) {
  var result = ''
  if (date && date.length >= 8) {
    result = date.substring(4, 6) + '-' + date.substring(6, 8)
  }
  if (time && time.length >= 4) {
    result += ' ' + time.substring(0, 2) + ':' + time.substring(2, 4)
  }
  return result
}
